//
//  SearchTableViewCell.m
//  HealthA段
//
//  Created by dllo on 15/6/16.
//  Copyright (c) 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SearchTableViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation SearchTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myweb = [[UIWebView alloc] init];
        [self.contentView addSubview:self.myweb];
        
        self.searchImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.searchImage];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myweb.frame = CGRectMake(20,30,(WIDTH/2)-20,80);
    self.myweb.delegate = self;
    self.myweb.scrollView.bounces = NO;
    self.myweb.scrollView.alwaysBounceVertical = NO;
    
    self.searchImage.frame = CGRectMake(WIDTH/2+10, 20, WIDTH/3, 80);
    
    UIView *backview = [[UIView alloc] initWithFrame:CGRectMake((WIDTH/2-5), 0, 10, HEIGHT)];
    backview.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:backview];
}

@end
